﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

#nullable disable

namespace CzJ_ttsc.Models.Database
{
    [Table("Category")]
    public partial class Category
    {
        public Category()
        {
            Goods = new HashSet<Good>();
        }

        [Key]
        public int Id { get; set; }
        [Required]
        [StringLength(100)]
        public string CateName { get; set; }

        [InverseProperty(nameof(Good.Cate))]
        public virtual ICollection<Good> Goods { get; set; }
    }
}
